package ycl.important.controller.sys;


import com.github.xiaoymin.knife4j.annotations.ApiSort;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import ycl.important.common.ApiResult;
import ycl.important.common.base.controller.BaseController;
import ycl.important.entity.sys.UserFriends;
import ycl.important.service.sys.UserFriendsService;

import javax.annotation.Resource;

/**
 * <p>
 * 用户的朋友 前端控制器
 * </p>
 *
 * @author YCL
 * @since 2021-06-15
 */
@RestController
@RequestMapping("/sys/user-friends")
@Api(tags = "用户的朋友")
@ApiSort(27)
public class UserFriendsController extends BaseController {

	@Resource
	private UserFriendsService userFriendsService;

	@Override
	public ApiResult<UserFriends> getById(Long id) {
		return ApiResult.success(userFriendsService.getById(id));
	}
}

